﻿using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using VoL.Domain.IServices.HealthEducation;
using VOL.Core.Utilities;

namespace VOL.WebApi.Controllers
{
    /// <summary>
    /// 广播日志记录控制器
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class BroadLogController : ControllerBase
    {
        private readonly IBroadLogService _broadLogService;
        public BroadLogController(IBroadLogService broadLogService)
        {
            _broadLogService = broadLogService;
        }
        [HttpGet]
        public async Task<WebResponseContent> GetBroadLogList()
        {
            return await _broadLogService.GetBroadLogList();
        }
    }
}
